package com.svse.designPattern.behaviour.strategy.service;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/6 20:16
 */
public class Context {
    private Strategy strategy;
    public Strategy getStrategy(){
        return strategy;
    }

    public void setStrategy(Strategy strategy)
    {
        this.strategy=strategy;
    }
    public void strategyMethod()
    {
        strategy.strategyMethod();
    }
}
